package service

import (
	"context"
	"monoblog/common/register"
	"monoblog/domain/model"
)

func GetMomentService() MomentService {
	return register.GetInstance[MomentService]("MomentService")
}

type MomentService interface {
	// UpdateReadById - 按 ID 更新阅读状态
	UpdateReadById(ctx context.Context, id int64) error

	// UpdateReadByUserId - 更新用户下的所有通知阅读状态
	UpdateReadByUserId(ctx context.Context, userId string) error

	// FindListByUserId 根据用户ID查询通知列表
	FindListByUserId(ctx context.Context, userId string) ([]*model.Moment, error)
}
